home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 114 / macaddict114.cdr / Software / Utilities / MenuCalendarClock-iCal-2.1.1.dmg / MenuCalendarClock iCal.app / Contents / Resources / BirthdayCalendarPrefs.nib / _BirthdayCalendarPrefs_EOArchive.java next >
Encoding:
Java Source  |  2005-11-07  |  18.1 KB  |  342 lines

  1. // _BirthdayCalendarPrefs_EOArchive.java
  2. // Generated by EnterpriseObjects palette at Donnerstag, 18. November 2004 17:55 Uhr Europe/Berlin
  3.  
  4. import com.webobjects.eoapplication.*;
  5. import com.webobjects.eocontrol.*;
  6. import com.webobjects.eointerface.*;
  7. import com.webobjects.eointerface.swing.*;
  8. import com.webobjects.foundation.*;
  9. import java.awt.*;
  10. import javax.swing.*;
  11. import javax.swing.border.*;
  12. import javax.swing.table.*;
  13. import javax.swing.text.*;
  14.  
  15. public class _BirthdayCalendarPrefs_EOArchive extends com.webobjects.eoapplication.EOArchive {
  16.     IBHelpConnector _iBHelpConnector0, _iBHelpConnector1;
  17.     com.webobjects.eointerface.swing.EOFrame _eoFrame0;
  18.     com.webobjects.eointerface.swing.EOTextField _nsTextField0, _nsTextField1, _nsTextField2, _nsTextField3, _nsTextField4;
  19.     com.webobjects.eointerface.swing.EOView _nsBox0, _nsBox1;
  20.     com.webobjects.foundation.NSNumberFormatter _nsNumberFormatter0;
  21.     javax.swing.JButton _nsButton0, _nsButton1, _nsButton2;
  22.     javax.swing.JCheckBox _nsButton3, _nsButton4, _nsButton5;
  23.     javax.swing.JComboBox _popup0;
  24.     javax.swing.JPanel _nsView0;
  25.  
  26.     public _BirthdayCalendarPrefs_EOArchive(Object owner, NSDisposableRegistry registry) {
  27.         super(owner, registry);
  28.     }
  29.  
  30.     protected void _construct() {
  31.         Object owner = _owner();
  32.         EOArchive._ObjectInstantiationDelegate delegate = (owner instanceof EOArchive._ObjectInstantiationDelegate) ? (EOArchive._ObjectInstantiationDelegate)owner : null;
  33.         Object replacement;
  34.  
  35.         super._construct();
  36.  
  37.         _nsNumberFormatter0 = (com.webobjects.foundation.NSNumberFormatter)_registered(new com.webobjects.foundation.NSNumberFormatter("0;-0"), "");
  38.         _nsTextField4 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField1111112");
  39.         _nsBox1 = (com.webobjects.eointerface.swing.EOView)_registered(new com.webobjects.eointerface.swing.EOView(), "NSView");
  40.         _nsBox0 = (com.webobjects.eointerface.swing.EOView)_registered(new com.webobjects.eointerface.swing.EOView(), "NSBox1");
  41.         _nsTextField3 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField2");
  42.         _nsTextField2 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField111111");
  43.         _iBHelpConnector1 = (IBHelpConnector)_registered(new IBHelpConnector(), "");
  44.         _nsButton2 = (javax.swing.JButton)_registered(new javax.swing.JButton(""), "NSButton31");
  45.         _iBHelpConnector0 = (IBHelpConnector)_registered(new IBHelpConnector(), "");
  46.  
  47.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "doAlarmField2")) != null)) {
  48.             _nsButton1 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (javax.swing.JButton)replacement;
  49.             _replacedObjects.setObjectForKey(replacement, "_nsButton1");
  50.         } else {
  51.             _nsButton1 = (javax.swing.JButton)_registered(new javax.swing.JButton("days in advance"), "NSButton4");
  52.         }
  53.  
  54.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "registerNoteLabel")) != null)) {
  55.             _nsTextField1 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement;
  56.             _replacedObjects.setObjectForKey(replacement, "_nsTextField1");
  57.         } else {
  58.             _nsTextField1 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField1111111");
  59.         }
  60.  
  61.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_lastKeyView")) != null)) {
  62.             _nsButton5 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (javax.swing.JCheckBox)replacement;
  63.             _replacedObjects.setObjectForKey(replacement, "_nsButton5");
  64.         } else {
  65.             _nsButton5 = (javax.swing.JCheckBox)_registered(new javax.swing.JCheckBox("add sound to message"), "NSButton11");
  66.         }
  67.  
  68.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "updateCalendarButton")) != null)) {
  69.             _nsButton0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (javax.swing.JButton)replacement;
  70.             _replacedObjects.setObjectForKey(replacement, "_nsButton0");
  71.         } else {
  72.             _nsButton0 = (javax.swing.JButton)_registered(new javax.swing.JButton("Copy Now"), "NSButton2");
  73.         }
  74.  
  75.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView.nextFocusableComponent.nextFocusableComponent.nextFocusableComponent")) != null)) {
  76.             _nsTextField0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement;
  77.             _replacedObjects.setObjectForKey(replacement, "_nsTextField0");
  78.         } else {
  79.             _nsTextField0 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField");
  80.         }
  81.  
  82.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView.nextFocusableComponent.nextFocusableComponent")) != null)) {
  83.             _nsButton4 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (javax.swing.JCheckBox)replacement;
  84.             _replacedObjects.setObjectForKey(replacement, "_nsButton4");
  85.         } else {
  86.             _nsButton4 = (javax.swing.JCheckBox)_registered(new javax.swing.JCheckBox(""), "NSButton1");
  87.         }
  88.  
  89.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView.nextFocusableComponent")) != null)) {
  90.             _popup0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (javax.swing.JComboBox)replacement;
  91.             _replacedObjects.setObjectForKey(replacement, "_popup0");
  92.         } else {
  93.             _popup0 = (javax.swing.JComboBox)_registered(new javax.swing.JComboBox(), "NSPopUpButton");
  94.         }
  95.  
  96.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView")) != null)) {
  97.             _nsButton3 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (javax.swing.JCheckBox)replacement;
  98.             _replacedObjects.setObjectForKey(replacement, "_nsButton3");
  99.         } else {
  100.             _nsButton3 = (javax.swing.JCheckBox)_registered(new javax.swing.JCheckBox("Copy birthdays into this iCal calendar:"), "NSButton");
  101.         }
  102.  
  103.         if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_window")) != null)) {
  104.             _eoFrame0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOFrame)replacement;
  105.             _replacedObjects.setObjectForKey(replacement, "_eoFrame0");
  106.         } else {
  107.             _eoFrame0 = (com.webobjects.eointerface.swing.EOFrame)_registered(new com.webobjects.eointerface.swing.EOFrame(), "Window");
  108.         }
  109.  
  110.         _nsView0 = (JPanel)_eoFrame0.getContentPane();
  111.     }
  112.  
  113.     protected void _awaken() {
  114.         super._awaken();
  115.         _popup0.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "birthdayCalendarChanged", _popup0), ""));
  116.         _nsButton4.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "updatePreferences", _nsButton4), ""));
  117.         _nsButton3.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "updatePreferences", _nsButton3), ""));
  118.  
  119.         if (_replacedObjects.objectForKey("_eoFrame0") == null) {
  120.             _connect(_eoFrame0, _owner(), "delegate");
  121.         }
  122.  
  123.         if (_replacedObjects.objectForKey("_nsButton1") == null) {
  124.             _connect(_owner(), _nsButton1, "doAlarmField2");
  125.         }
  126.  
  127.         if (_replacedObjects.objectForKey("_nsTextField1") == null) {
  128.             _connect(_owner(), _nsTextField1, "registerNoteLabel");
  129.         }
  130.  
  131.         if (_replacedObjects.objectForKey("_nsButton5") == null) {
  132.             _connect(_owner(), _nsButton5, "_lastKeyView");
  133.         }
  134.  
  135.         _nsButton5.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "updatePreferences", _nsButton5), ""));
  136.  
  137.         if (_replacedObjects.objectForKey("_nsButton5") == null) {
  138.             _connect(_owner(), _nsButton5, "useAudibleAlarmButton");
  139.         }
  140.  
  141.         if (_replacedObjects.objectForKey("_nsButton4") == null) {
  142.             _connect(_owner(), _nsButton4, "doAlarmField");
  143.         }
  144.  
  145.         _nsButton0.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "updateBirthdayCalendar", _nsButton0), ""));
  146.  
  147.         if (_replacedObjects.objectForKey("_nsButton0") == null) {
  148.             _connect(_owner(), _nsButton0, "updateCalendarButton");
  149.         }
  150.  
  151.         if (_replacedObjects.objectForKey("_nsButton3") == null) {
  152.             _connect(_owner(), _nsButton3, "_firstKeyView");
  153.         }
  154.  
  155.         if (_replacedObjects.objectForKey("_nsButton3") == null) {
  156.             _connect(_owner(), _nsButton3, "_initialKeyView");
  157.         }
  158.  
  159.         if (_replacedObjects.objectForKey("_nsTextField0") == null) {
  160.             _connect(_owner(), _nsTextField0, "dayAlarmField");
  161.         }
  162.  
  163.         if (_replacedObjects.objectForKey("_popup0") == null) {
  164.             _connect(_owner(), _popup0, "calendarPopup");
  165.         }
  166.  
  167.         if (_replacedObjects.objectForKey("_nsButton3") == null) {
  168.             _connect(_owner(), _nsButton3, "doSyncField");
  169.         }
  170.  
  171.         if (_replacedObjects.objectForKey("_eoFrame0") == null) {
  172.             _connect(_owner(), _eoFrame0, "_window");
  173.         }
  174.  
  175.         _nsTextField0.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "updatePreferences", _nsTextField0), ""));
  176.  
  177.         if (_replacedObjects.objectForKey("_popup0") == null) {
  178.             _popup0.setModel(new javax.swing.DefaultComboBoxModel());
  179.             _popup0.addItem("Private");
  180.             _popup0.addItem("Job");
  181.         }
  182.     }
  183.  
  184.     protected void _init() {
  185.         super._init();
  186.         _nsNumberFormatter0.setMinimum(new java.math.BigDecimal("1"));
  187.         _nsNumberFormatter0.setMaximum(new java.math.BigDecimal("31"));
  188.         _setFontForComponent(_nsTextField4, "Lucida Grande", 10, Font.PLAIN);
  189.         _nsTextField4.setEditable(false);
  190.         _nsTextField4.setOpaque(false);
  191.         _nsTextField4.setText("These settings only affect newly created entries. Use 'Copy Now' to update all.");
  192.         _nsTextField4.setHorizontalAlignment(javax.swing.JTextField.LEFT);
  193.         _nsTextField4.setSelectable(false);
  194.         _nsTextField4.setEnabled(true);
  195.         _nsTextField4.setBorder(null);
  196.         if (!(_nsBox0.getLayout() instanceof EOViewLayout)) { _nsBox0.setLayout(new EOViewLayout()); }
  197.         _nsBox1.setSize(125, 1);
  198.         _nsBox1.setLocation(2, 2);
  199.         ((EOViewLayout)_nsBox0.getLayout()).setAutosizingMask(_nsBox1, EOViewLayout.MinYMargin);
  200.         _nsBox0.add(_nsBox1);
  201.         _nsBox0.setBorder(new com.webobjects.eointerface.swing._EODefaultBorder("", true, "Lucida Grande", 13, Font.PLAIN));
  202.         _setFontForComponent(_nsTextField3, "Lucida Grande", 13, Font.PLAIN);
  203.         _nsTextField3.setEditable(false);
  204.         _nsTextField3.setOpaque(false);
  205.         _nsTextField3.setText("Default Birthday Alarm");
  206.         _nsTextField3.setHorizontalAlignment(javax.swing.JTextField.LEFT);
  207.         _nsTextField3.setSelectable(false);
  208.         _nsTextField3.setEnabled(true);
  209.         _nsTextField3.setBorder(null);
  210.         _setFontForComponent(_nsTextField2, "Lucida Grande", 10, Font.PLAIN);
  211.         _nsTextField2.setEditable(false);
  212.         _nsTextField2.setOpaque(false);
  213.         _nsTextField2.setText("It is recommended to create an extra birthday calendar in iCal for copying birthdays as calendar copying is not undoable.");
  214.         _nsTextField2.setHorizontalAlignment(javax.swing.JTextField.LEFT);
  215.         _nsTextField2.setSelectable(false);
  216.         _nsTextField2.setEnabled(true);
  217.         _nsTextField2.setBorder(null);
  218.         _setFontForComponent(_nsButton2, "Lucida Grande", 13, Font.PLAIN + Font.BOLD);
  219.         _nsButton2.setMargin(new Insets(0, 2, 0, 2));
  220.  
  221.         if (_replacedObjects.objectForKey("_nsButton1") == null) {
  222.             _setFontForComponent(_nsButton1, "Lucida Grande", 13, Font.PLAIN);
  223.             _nsButton1.setMargin(new Insets(0, 2, 0, 2));
  224.         }
  225.  
  226.         if (_replacedObjects.objectForKey("_nsTextField1") == null) {
  227.             _setFontForComponent(_nsTextField1, "Lucida Grande", 10, Font.PLAIN);
  228.             _nsTextField1.setEditable(false);
  229.             _nsTextField1.setOpaque(false);
  230.             _nsTextField1.setText("Please register to enable this feature.");
  231.             _nsTextField1.setHorizontalAlignment(javax.swing.JTextField.CENTER);
  232.             _nsTextField1.setSelectable(false);
  233.             _nsTextField1.setEnabled(true);
  234.             _nsTextField1.setBorder(null);
  235.         }
  236.  
  237.         if (_replacedObjects.objectForKey("_nsButton5") == null) {
  238.             _setFontForComponent(_nsButton5, "Lucida Grande", 13, Font.PLAIN);
  239.         }
  240.  
  241.         if (_replacedObjects.objectForKey("_nsButton0") == null) {
  242.             _setFontForComponent(_nsButton0, "Lucida Grande", 13, Font.PLAIN);
  243.             _nsButton0.setMargin(new Insets(0, 2, 0, 2));
  244.         }
  245.  
  246.         if (_replacedObjects.objectForKey("_nsTextField0") == null) {
  247.             _setFontForComponent(_nsTextField0, "Lucida Grande", 11, Font.PLAIN);
  248.             _nsTextField0.setEditable(true);
  249.             _nsTextField0.setOpaque(true);
  250.             _nsTextField0.setText("2");
  251.             _nsTextField0.setHorizontalAlignment(javax.swing.JTextField.CENTER);
  252.             _nsTextField0.setSelectable(true);
  253.             _nsTextField0.setEnabled(true);
  254.         }
  255.  
  256.         if (_replacedObjects.objectForKey("_nsButton4") == null) {
  257.             _connect(_nsButton4, _nsTextField0, "nextFocusableComponent");
  258.         }
  259.  
  260.         if (_replacedObjects.objectForKey("_nsButton4") == null) {
  261.             _setFontForComponent(_nsButton4, "Lucida Grande", 13, Font.PLAIN);
  262.         }
  263.  
  264.         if (_replacedObjects.objectForKey("_popup0") == null) {
  265.             _connect(_popup0, _nsButton4, "nextFocusableComponent");
  266.         }
  267.  
  268.         if (_replacedObjects.objectForKey("_popup0") == null) {
  269.             _setFontForComponent(_popup0, "Lucida Grande", 13, Font.PLAIN);
  270.         }
  271.  
  272.         if (_replacedObjects.objectForKey("_nsButton3") == null) {
  273.             _connect(_nsButton3, _popup0, "nextFocusableComponent");
  274.         }
  275.  
  276.         if (_replacedObjects.objectForKey("_nsButton3") == null) {
  277.             _setFontForComponent(_nsButton3, "Lucida Grande", 13, Font.PLAIN);
  278.         }
  279.  
  280.         if (!(_nsView0.getLayout() instanceof EOViewLayout)) { _nsView0.setLayout(new EOViewLayout()); }
  281.         _nsButton3.setSize(328, 17);
  282.         _nsButton3.setLocation(11, 13);
  283.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton3, EOViewLayout.MinYMargin);
  284.         _nsView0.add(_nsButton3);
  285.         _popup0.setSize(235, 26);
  286.         _popup0.setLocation(34, 37);
  287.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_popup0, EOViewLayout.MinYMargin);
  288.         _nsView0.add(_popup0);
  289.         _nsButton0.setSize(147, 26);
  290.         _nsButton0.setLocation(280, 37);
  291.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton0, EOViewLayout.MinYMargin);
  292.         _nsView0.add(_nsButton0);
  293.         _nsButton4.setSize(29, 17);
  294.         _nsButton4.setLocation(40, 150);
  295.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton4, EOViewLayout.MinYMargin);
  296.         _nsView0.add(_nsButton4);
  297.         _nsTextField0.setSize(27, 19);
  298.         _nsTextField0.setLocation(65, 148);
  299.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField0, EOViewLayout.MinYMargin);
  300.         _nsView0.add(_nsTextField0);
  301.         _nsButton5.setSize(341, 17);
  302.         _nsButton5.setLocation(61, 172);
  303.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton5, EOViewLayout.MinYMargin);
  304.         _nsView0.add(_nsButton5);
  305.         _nsTextField1.setSize(358, 13);
  306.         _nsTextField1.setLocation(40, 193);
  307.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField1, EOViewLayout.MinYMargin);
  308.         _nsView0.add(_nsTextField1);
  309.         _nsButton1.setSize(189, 17);
  310.         _nsButton1.setLocation(97, 149);
  311.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton1, EOViewLayout.MinYMargin);
  312.         _nsView0.add(_nsButton1);
  313.         _nsButton2.setSize(21, 24);
  314.         _nsButton2.setLocation(402, 189);
  315.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton2, EOViewLayout.MinYMargin);
  316.         _nsView0.add(_nsButton2);
  317.         _nsTextField2.setSize(397, 41);
  318.         _nsTextField2.setLocation(30, 66);
  319.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField2, EOViewLayout.MinYMargin);
  320.         _nsView0.add(_nsTextField2);
  321.         _nsTextField3.setSize(213, 17);
  322.         _nsTextField3.setLocation(30, 123);
  323.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField3, EOViewLayout.MinYMargin);
  324.         _nsView0.add(_nsTextField3);
  325.         _nsBox0.setSize(391, 5);
  326.         _nsBox0.setLocation(32, 107);
  327.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsBox0, EOViewLayout.MinYMargin);
  328.         _nsView0.add(_nsBox0);
  329.         _nsTextField4.setSize(148, 41);
  330.         _nsTextField4.setLocation(279, 124);
  331.         ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField4, EOViewLayout.MinYMargin);
  332.         _nsView0.add(_nsTextField4);
  333.  
  334.         if (_replacedObjects.objectForKey("_eoFrame0") == null) {
  335.             _nsView0.setSize(436, 220);
  336.             _eoFrame0.setTitle("Birthdays");
  337.             _eoFrame0.setLocation(50, 317);
  338.             _eoFrame0.setSize(436, 220);
  339.         }
  340.     }
  341. }
  342.